//
// Created by v on 24-5-13.
//

#ifndef JKLIBS_CMPROTOCOLCONVERTINTERFACE_H
#define JKLIBS_CMPROTOCOLCONVERTINTERFACE_H

#include <iostream>
#include "cm_message_define.h"

class CMProtocolConvertInterface
{
  public:
    CMProtocolConvertInterface();
    virtual ~CMProtocolConvertInterface();

    virtual std::string GenerateDeviceBroadInfo(CMDeviceBroadInfo &broadInfo) = 0;
    virtual int ParseDeviceBroadInfo(std::string &data, CMDeviceBroadInfo &broadInfo) = 0;
    virtual int ParseDeviceBroadInfo(const char *data, CMDeviceBroadInfo &broadInfo) = 0;
};

#endif // JKLIBS_CMPROTOCOLCONVERTINTERFACE_H
